[IA64] Fix virtualized EFI memory mapping creation for dom0.
authorAlex Williamson <alex.williamson@hp.com>
Thu, 24 Apr 2008 20:02:16 +0000 (14:02 -0600)
committerAlex Williamson <alex.williamson@hp.com>
Thu, 24 Apr 2008 20:02:16 +0000 (14:02 -0600)
commit2dd62c699fa386cf2c2e376d8b2d9a51f20dad0f
tree5db238ad279d899dfbe681805b1e5a2fa50e2803
parentbeeddef27bd01bbbce8088c2a515358c894fc43d
[IA64] Fix virtualized EFI memory mapping creation for dom0.

EFI uses 4k page, while xen uses 16k page.  For dom0, identity mappings
are setup for EFI_ACPI_RECLAIM_MEMORY etc.  It is possible when seting
up dom0 memory ranges to include some EFI_ACPI_RECLAIM_MEMORY ranges
due to 4k/16k alignment difference.

This patch fixes this issue by scaning memory descriptors twice.  In the
first scan, setup dom0 identity mapping.  In the second scan, setup
dom0 memory mapping.

Signed-off-by: Anthony Xu <anthony.xu@intel.com>
xen/arch/ia64/xen/dom_fw_dom0.c